/* Copyright (c) 2009-2010 David Forsythe.
 * See LICENSE file for license details.
 */

#ifndef __PKG_INFO_H__
#define __PKG_INFO_H__

#define PKG_DBDIR_DEFAULT			"/var/db/pkg"
/* A goal should be to eliminate this directory, and instead store options
 * seamlessly in plists. */
#define PORTS_DBDIR_DEFAULT 			"/var/db/ports"

#define BAD_VALUE				"???"

#define OK	0
#define NOT_OK	1

#define FOREACH_IN_LIST(i, list) \
			for (i = *list; *i != NULL; i = *list++)

#define OPT_SHOW_PKG_NAME			0x00000001
#define	OPT_SHOW_PREFIX				0x00000002
#define OPT_SHOW_INDEX				0x00000004
#define OPT_SHOW_COMMENT			0x00000008
#define	OPT_SHOW_DESCRIPTION			0x00000010
#define OPT_SHOW_DISPLAY			0x00000020
#define OPT_SHOW_PLIST				0x00000040
#define OPT_SHOW_CHECKSUM			0x00000080
#define OPT_NO_GLOB				0x00000100
#define OPT_SHOW_INSTALL			0x00000200
#define OPT_SHOW_REQUIRE			0x00000400
#define OPT_SHOW_DEINSTALL			0x00000800
#define OPT_KEEP_PACKAGE			0x00001000
#define OPT_SHOW_DEPENDS			0x00002000
#define OPT_SHOW_REQUIRED_BY			0x00004000
#define OPT_SHOW_FILES				0x00008000
#define OPT_SHOW_MTREE				0x00010000
#define OPT_SHOW_SIZE				0x00020000
#define OPT_SHOW_ORIGIN				0x00040000
#define OPT_SHOW_FORMAT_REVISION		0x00080000
#define OPT_QUIET				0x00100000
#define OPT_PREFACE_WITH_PKG_NAME		0x00200000
#define OPT_MATCH_ALL				0x00400000
#define OPT_MATCH_REGEX				0x00800000
#define OPT_MATCH_EREGEX			0x01000000
#define OPT_SHOW_VERSION			0x02000000
#define OPT_DEBUG_DUMP				0x04000000

#endif

